package router

import (
	"funlog-gserver/handler"
	"funlog-gserver/middlewares"
)

//InitApplication 初始化application路由
func InitApplication() {

	v1 := G.Group("/application", middlewares.JWTAuthMiddleware(), middlewares.Cors())
	{
		v1.GET("/", handler.ApplicationGetListHandler)
		v1.GET("/:id", handler.ApplicationGetHandler)
		v1.POST("/", handler.ApplicationAddHandler)
		v1.PUT("/:id", handler.ApplicationPutHandler)
		v1.DELETE("/:id", handler.ApplicationDelHandler)
	}
}
